﻿/**
* Класс управляет насыщенностью объекта
* @author Firsoff Maxim, ICQ:235859730, email: firsoff_maxim@mail.ru
* @version 0.1/18.02.2008 14:22
*/

package ru.vega_int.firsoff.as3.transition 
{
	import flash.display.DisplayObject;
	import flash.events.EventDispatcher;
	import flash.utils.Timer
	import flash.events.TimerEvent;

	public class Saturation extends EventDispatcher
	{
		//	PROPERTIES
		private var _timer:Timer;
		private var _target:DisplayObject;
		
		private const RED:Number = 0.3086;
		private const BLUE:Number = 0.694;
		private const GREEN:Number = 0.0820;
		private const SATUR_STEP:Number = 0.1;
		
		//	CONSTRUCTOR
		public function Saturation(target:DisplayObject) 
		{
			this._target = target;
			init();
		}
		
		//	METHODS
		private function init() :void
		{
			//_timer = new Timer(1
		};
		
		
		public function start(direction:String, start:Number, end:Number, time:Number) 
		{
			var timerDelay:Number = time/Math.abs(start - end)/SATUR_STEP;
		};
		
		public static function setSaturation(target:DisplayObject, value:Number) : void
		{
			
		};
		//	GETTERS/SETTERS
		
		//	HANDLERS
	}
}
